package com.taorenqi.business.adapter;

import android.graphics.Paint;
import android.widget.ImageView;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.taorenqi.business.R;
import com.taorenqi.business.entity.InsideInfoEntity;
import com.taorenqi.business.helper.RecyclerViewHolder;

import java.util.List;

/**
 * Created by eric on 2017/9/1.
 */

public class InsideInfoAdapter extends BaseQuickAdapter<InsideInfoEntity,RecyclerViewHolder> {

    public InsideInfoAdapter(List<InsideInfoEntity> commonEntityList) {
        super(R.layout.item_inside_info_recyclerview,commonEntityList);

    }
    @Override
    protected void convert(RecyclerViewHolder helper, InsideInfoEntity item) {
        if (item != null){

            helper
                    .setText(R.id.item_inside_info_title,"【" + item.getTitle() + "】")
                    .setText(R.id.item_inside_info_content,item.getContent())
            ;
        }
    }
}
